package com.lele.dao;

import com.lele.pojo.Tang;

import java.sql.SQLException;
import java.util.List;

public interface BaseDao {
    int add(Tang tang) throws SQLException; // 增
    int delete(int id) throws SQLException; // 删
    int update(Tang tang) throws SQLException; // 改
    List<Tang> selectAll() throws SQLException; // 查询所有
    Tang selectOne(int id) throws SQLException; // 查询单个
    List<Tang> selectLike(String name) throws SQLException; // 模糊查询
    List<Tang> selectPaging(int pageNo, int a) throws SQLException; // 分页查询
    int selectSum() throws SQLException; // 查询总条数
}
